const express = require('express')
const app = express()

// api接口
app.get('/user/login', (req, res) => {
  console.log('nihao');
  res.send({err:0,msg:'regist ok'})
})

// 监听端口3000， 开启服务器，相当于http.createServer()  192.168.1.104
app.listen(3000, () => {
  console.log('server start');
})